﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace SAASInvest.Contracts
{
    [DataContract]
    public class FileUploadData
    {
        public FileUploadData()
        {
            Length = 0;
            DataCount = 0;
            UploadData =new byte[Constants.MaxLengthPerRead];
            Offset = 0;
            CreateTime = DateTime.Now;
            FileName = String.Empty;
        }

        [DataMember]
        public string FileName
        {
            get;
            set;
        }

        [DataMember]
        public long Length
        {
            get;
            set;
        }

        [DataMember]
        public byte[] UploadData
        {
            get;
            set;
        }

        [DataMember]
        public int DataCount
        {
            get;
            set;
        }

        [DataMember]
        public long Offset
        {
            get;
            set;
        }

        [DataMember]
        public DateTime CreateTime
        {
            get;
            set;
        }
    }
}
